package com.hsmpay.mobile.pojo.bank;

import com.hsmpay.common.pojo.BasePojo;
import com.hsmpay.common.util.city.CityUtil;

import java.util.Date;

/**
 * 合作银行支行 java bean
 *
 * @author 颜铃璋
 *         对应 info_bank_branches表
 *         创建时间：2013-3-19
 */
public class BankBranches_WS extends BasePojo {
    private static final long serialVersionUID = 6209659396451401317L;

    private Long id;
    private Long bankId;//合作银行ID
    private String name;//支行名称
    private Integer province;//省
    private Integer city;//市
    private String description;//描述
    private Date createDate;
    private String code;//万三银行代码
    private String address;//地址
    private String phone;//电话
    private String post;//邮箱

    private String provinceStr;
    private String cityStr;

    private String otherParam;//between code and 下一个城市 code - 1  用于查询

    public String getProvinceStr() {
        return provinceStr;
    }

    public void setProvinceStr(String provinceStr) {
        this.provinceStr = provinceStr;
    }

    public String getCityStr() {
        return cityStr;
    }

    public void setCityStr(String cityStr) {
        this.cityStr = cityStr;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBankId() {
        return bankId;
    }

    public void setBankId(Long bankId) {
        this.bankId = bankId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        if (null == province) {
            provinceStr = "";
        } else {
            provinceStr = CityUtil.getNameByValue(province.toString());
        }
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        if (null == city) {
            cityStr = "";
        } else {
            cityStr = CityUtil.getNameByValue(city.toString());
        }
        this.city = city;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getOtherParam() {
        return otherParam;
    }

    public void setOtherParam(String otherParam) {
        this.otherParam = otherParam;
    }
}

